package com.firexxx.study.designmodel.factory.factorymethod;

/**
 * @description: 一个抽象工厂，一个抽象产品
 * @throws:
 * @author: zhuangzhang2
 * @date: 2019/11/11 16:57
 */
public class Main {

    public static void main(String[] args) {
        IFactory factory = new ManFactoryImpl();
        factory.getInstance().use();

        factory = new WomanFactoryImpl();
        factory.getInstance().use();
    }
}